a7dfb0d5d378cf9efef987cde8ed15e9330166fe,src/com/redhat/ceylon/compiler/java/codegen/InvocationBuilder.java,InvocationBuilder,invocation,#AbstractTransformer#Tree.InvocationExpression#,218
Before Change
throw new RuntimeException("Illegal State");
}
builder.setBoxingStrategy(BoxingStrategy.INDIFFERENT);
builder.setUnboxed(invocation.getUnboxed());
builder.compute();
return builder;
}
After Change
if (primaryDeclaration instanceof FunctionalParameter) {
// Callables always have boxed return type
builder.setBoxingStrategy(invocation.getUnboxed() ? BoxingStrategy.UNBOXED : BoxingStrategy.BOXED);
builder.setUnboxed(false);
} else {
builder.setBoxingStrategy(BoxingStrategy.INDIFFERENT);
builder.setUnboxed(invocation.getUnboxed());
}
builder.compute();
return builder;